chore(deps-dev): bump typescript from 5.9.3 to 6.0.3 - #53
chore(deps-dev): bump typescript from 5.9.3 to 6.0.3#53dependabot[bot] wants to merge 3 commits into
Conversation
|
@dependabot rebase |
|
Looks like this PR has been edited by someone other than Dependabot. That means Dependabot can't rebase it - sorry! If you're happy for Dependabot to recreate it from scratch, overwriting any edits, you can request |
|
@dependabot recreate |
Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.9.3 to 6.0.3. - [Release notes](https://github.com/microsoft/TypeScript/releases) - [Commits](microsoft/TypeScript@v5.9.3...v6.0.3) --- updated-dependencies: - dependency-name: typescript dependency-version: 6.0.3 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
c204280 to
282d4f9
Compare
There was a problem hiding this comment.
Sintesi
TypeScript 6.0 introduce il nuovo errore TS2882 che richiede dichiarazioni di tipo per i side-effect import CSS. La build e il typecheck di @notes/web falliscono entrambi con 3 errori identici.
Root cause
In TypeScript 6.0, ogni import "...css" senza binding richiede una dichiarazione di modulo in un file .d.ts. In TS 5.x era silenziosamente ignorato (breaking change documentato nel blog TS 6.0).
File colpiti (non nel diff, ma rotti dal bump):
src/components/editor/Editor.tsxrighe 1-2: import CSS di@blocknote/coree@blocknote/mantinesrc/main.tsxriga 6: import di./styles.css
Il repo non contiene nessun file .d.ts in apps/web/src/ e il tsconfig.json non referenzia vite/client, quindi i tipi per i moduli CSS non sono mai dichiarati.
Soluzione consigliata
Creare apps/web/src/vite-env.d.ts con:
/// <reference types="vite/client" />vite/client dichiara gia tutti i moduli CSS come side-effect; con questa reference TS2882 scompare su tutti e tre gli import. Questo file viene generato automaticamente da vite create ma e assente in questo repo.
Alternativa di breve termine: hold su ^5.9 (vedi suggerimento inline su package.json).
| "postcss": "^8.5.15", | ||
| "tailwindcss": "^4", | ||
| "typescript": "^5.7", | ||
| "typescript": "^6.0", |
This comment was marked as low quality.
This comment was marked as low quality.
Sorry, something went wrong.
|
Chiudo: TypeScript 6 fallisce su side-effect import di |
Pull request was closed
|
OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting If you change your mind, just re-open this PR and I'll resolve any conflicts on it. |
Bumps typescript from 5.9.3 to 6.0.3.
Release notes
Sourced from typescript's releases.
Commits
050880cBump version to 6.0.3 and LKGeeae9dd🤖 Pick PR #63401 (Also check package name validity in...) into release-6.0 (#...ad1c695🤖 Pick PR #63368 (Harden ATA package name filtering) into release-6.0 (#63372)0725fb4🤖 Pick PR #63310 (Mark class property initializers as...) into release-6.0 (#...607a22aBump version to 6.0.2 and LKG9e72ab7🤖 Pick PR #63239 (Fix missing lib files in reused pro...) into release-6.0 (#...35ff23d🤖 Pick PR #63163 (Port anyFunctionType subtype fix an...) into release-6.0 (#...e175b69Bump version to 6.0.1-rc and LKGaf4caacUpdate LKG8efd7e8Merge remote-tracking branch 'origin/main' into release-6.0